/**
 * Todo
 *
 * @author hjc_042043@sina.cn
 * @date 2023/10/17 04:29
 */
public class Main {
    public static void main(String[] args) {
        //业务处理类，实现Runnable接口
        ThreadTest threadTest = new ThreadTest();
        //创建子线程，将业务处理实例作为参数传进去
        Thread t1 = new Thread(threadTest);
        t1.start();
    }
}

class ThreadTest implements Runnable {
    @Override
    public void run() {
        System.out.println("test,hello!");
    }
}